package Class.senior.demo10;

import java.util.HashMap;
import java.util.Scanner;

public class GenericClassTest {
    public static void main(String[] args) {
        HashMap<String, GenericClass> hashMap = new HashMap<>();
        hashMap.put("倪永康", new GenericClass("倪永康", 22, "栖霞区", "足球"));
        System.out.println(hashMap);
        Scanner scanner = new Scanner(System.in);
        String nameValue = scanner.next();
        if (nameValue.equals("倪永康")) {
            System.out.println(hashMap.get("倪永康"));
        }
    }
}
